package com.onlinevideo.data;


public class ResultBean {

    /**
     * @description 响应状态码
     *
     * */
    private Integer code;

    /**
     * @description 提示信息
     *
     * */
    private String message;

    /**
     * @description 返回数据
     *
     * */
    private Object data;



    private ResultBean(Integer code, String message, Object data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }

    private ResultBean(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public static ResultBean scContinue(String message) {return new ResultBean(SC_CONTINUE, message);}


    public static ResultBean scContinue(String message, Object data) {
        return new ResultBean(SC_CONTINUE, message, data);
    }

    public static ResultBean scSwitchingProtocols(String message) {
        return new ResultBean(SC_SWITCHING_PROTOCOLS, message);
    }

    public static ResultBean scSwitchingProtocols(String message, Object data) {
        return new ResultBean(SC_SWITCHING_PROTOCOLS, message, data);
    }

    public static ResultBean scOk(String message) {
        return new ResultBean(SC_OK, message);
    }

    public static ResultBean scOk(String message, Object data) {
        return new ResultBean(SC_OK, message, data);
    }

    public static ResultBean scCreated(String message) {
        return new ResultBean(SC_CREATED, message);
    }

    public static ResultBean scCreated(String message, Object data) {
        return new ResultBean(SC_CREATED, message, data);
    }

    public static ResultBean scAccepted(String message) {
        return new ResultBean(SC_ACCEPTED, message);
    }

    public static ResultBean scAccepted(String message, Object data) {
        return new ResultBean(SC_ACCEPTED, message, data);
    }

    public static ResultBean scNonAuthoritativeInformation(String message) {
        return new ResultBean(SC_NON_AUTHORITATIVE_INFORMATION, message);
    }

    public static ResultBean scNonAuthoritativeInformation(String message, Object data) {
        return new ResultBean(SC_NON_AUTHORITATIVE_INFORMATION, message, data);
    }

    public static ResultBean scNoContent(String message) {
        return new ResultBean(SC_NO_CONTENT, message);
    }

    public static ResultBean scNoContent(String message, Object data) {
        return new ResultBean(SC_NO_CONTENT, message, data);
    }

    public static ResultBean scResetContent(String message) {
        return new ResultBean(SC_RESET_CONTENT, message);
    }

    public static ResultBean scResetContent(String message, Object data) {
        return new ResultBean(SC_RESET_CONTENT, message, data);
    }

    public static ResultBean scPartialContent(String message) {
        return new ResultBean(SC_PARTIAL_CONTENT, message);
    }

    public static ResultBean scPartialContent(String message, Object data) {
        return new ResultBean(SC_PARTIAL_CONTENT, message, data);
    }

    public static ResultBean scMultipleChoices(String message) {
        return new ResultBean(SC_MULTIPLE_CHOICES, message);
    }

    public static ResultBean scMultipleChoices(String message, Object data) {
        return new ResultBean(SC_MULTIPLE_CHOICES, message, data);
    }

    public static ResultBean scMovedPermanently(String message) {
        return new ResultBean(SC_MOVED_PERMANENTLY, message);
    }

    public static ResultBean scMovedPermanently(String message, Object data) {
        return new ResultBean(SC_MOVED_PERMANENTLY, message, data);
    }

    public static ResultBean scMovedTemporarily(String message) {
        return new ResultBean(SC_MOVED_TEMPORARILY, message);
    }

    public static ResultBean scMovedTemporarily(String message, Object data) {
        return new ResultBean(SC_MOVED_TEMPORARILY, message, data);
    }

    public static ResultBean scFound(String message) {
        return new ResultBean(SC_FOUND, message);
    }

    public static ResultBean scFound(String message, Object data) {
        return new ResultBean(SC_FOUND, message, data);
    }

    public static ResultBean scSeeOther(String message) {
        return new ResultBean(SC_SEE_OTHER, message);
    }

    public static ResultBean scSeeOther(String message, Object data) {
        return new ResultBean(SC_SEE_OTHER, message, data);
    }

    public static ResultBean scNotModified(String message) {
        return new ResultBean(SC_NOT_MODIFIED, message);
    }

    public static ResultBean scNotModified(String message, Object data) {
        return new ResultBean(SC_NOT_MODIFIED, message, data);
    }

    public static ResultBean scUseProxy(String message) {
        return new ResultBean(SC_USE_PROXY, message);
    }

    public static ResultBean scUseProxy(String message, Object data) {
        return new ResultBean(SC_USE_PROXY, message, data);
    }

    public static ResultBean scTemporaryRedirect(String message) {
        return new ResultBean(SC_TEMPORARY_REDIRECT, message);
    }

    public static ResultBean scTemporaryRedirect(String message, Object data) {
        return new ResultBean(SC_TEMPORARY_REDIRECT, message, data);
    }

    public static ResultBean scBadRequest(String message) {
        return new ResultBean(SC_BAD_REQUEST, message);
    }

    public static ResultBean scBadRequest(String message, Object data) {
        return new ResultBean(SC_BAD_REQUEST, message, data);
    }

    public static ResultBean scUnauthorized(String message) {
        return new ResultBean(SC_UNAUTHORIZED, message);
    }

    public static ResultBean scUnauthorized(String message, Object data) {
        return new ResultBean(SC_UNAUTHORIZED, message, data);
    }

    public static ResultBean scPaymentRequired(String message) {
        return new ResultBean(SC_PAYMENT_REQUIRED, message);
    }

    public static ResultBean scPaymentRequired(String message, Object data) {
        return new ResultBean(SC_PAYMENT_REQUIRED, message, data);
    }

    public static ResultBean scForbidden(String message) {
        return new ResultBean(SC_FORBIDDEN, message);
    }

    public static ResultBean scForbidden(String message, Object data) {
        return new ResultBean(SC_FORBIDDEN, message, data);
    }

    public static ResultBean scNotFound(String message) {
        return new ResultBean(SC_NOT_FOUND, message);
    }

    public static ResultBean scNotFound(String message, Object data) {
        return new ResultBean(SC_NOT_FOUND, message, data);
    }

    public static ResultBean scMethodNotAllowed(String message) {
        return new ResultBean(SC_METHOD_NOT_ALLOWED, message);
    }

    public static ResultBean scMethodNotAllowed(String message, Object data) {
        return new ResultBean(SC_METHOD_NOT_ALLOWED, message, data);
    }

    public static ResultBean scNotAcceptable(String message) {
        return new ResultBean(SC_NOT_ACCEPTABLE, message);
    }

    public static ResultBean scNotAcceptable(String message, Object data) {
        return new ResultBean(SC_NOT_ACCEPTABLE, message, data);
    }

    public static ResultBean scProxyAuthenticationRequired(String message) {
        return new ResultBean(SC_PROXY_AUTHENTICATION_REQUIRED, message);
    }

    public static ResultBean scProxyAuthenticationRequired(String message, Object data) {
        return new ResultBean(SC_PROXY_AUTHENTICATION_REQUIRED, message, data);
    }

    public static ResultBean scRequestTimeout(String message) {
        return new ResultBean(SC_REQUEST_TIMEOUT, message);
    }

    public static ResultBean scRequestTimeout(String message, Object data) {
        return new ResultBean(SC_REQUEST_TIMEOUT, message, data);
    }

    public static ResultBean scConflict(String message) {
        return new ResultBean(SC_CONFLICT, message);
    }

    public static ResultBean scConflict(String message, Object data) {
        return new ResultBean(SC_CONFLICT, message, data);
    }

    public static ResultBean scGone(String message) {
        return new ResultBean(SC_GONE, message);
    }

    public static ResultBean scGone(String message, Object data) {
        return new ResultBean(SC_GONE, message, data);
    }

    public static ResultBean scLengthRequired(String message) {
        return new ResultBean(SC_LENGTH_REQUIRED, message);
    }

    public static ResultBean scLengthRequired(String message, Object data) {
        return new ResultBean(SC_LENGTH_REQUIRED, message, data);
    }

    public static ResultBean scPreconditionFailed(String message) {
        return new ResultBean(SC_PRECONDITION_FAILED, message);
    }

    public static ResultBean scPreconditionFailed(String message, Object data) {
        return new ResultBean(SC_PRECONDITION_FAILED, message, data);
    }

    public static ResultBean scRequestEntityTooLarge(String message) {
        return new ResultBean(SC_REQUEST_ENTITY_TOO_LARGE, message);
    }

    public static ResultBean scRequestEntityTooLarge(String message, Object data) {
        return new ResultBean(SC_REQUEST_ENTITY_TOO_LARGE, message, data);
    }

    public static ResultBean scRequestUriTooLong(String message) {
        return new ResultBean(SC_REQUEST_URI_TOO_LONG, message);
    }

    public static ResultBean scRequestUriTooLong(String message, Object data) {
        return new ResultBean(SC_REQUEST_URI_TOO_LONG, message, data);
    }

    public static ResultBean scUnsupportedMediaType(String message) {
        return new ResultBean(SC_UNSUPPORTED_MEDIA_TYPE, message);
    }

    public static ResultBean scUnsupportedMediaType(String message, Object data) {
        return new ResultBean(SC_UNSUPPORTED_MEDIA_TYPE, message, data);
    }

    public static ResultBean scRequestedRangeNotSatisfiable(String message) {
        return new ResultBean(SC_REQUESTED_RANGE_NOT_SATISFIABLE, message);
    }

    public static ResultBean scRequestedRangeNotSatisfiable(String message, Object data) {
        return new ResultBean(SC_REQUESTED_RANGE_NOT_SATISFIABLE, message, data);
    }

    public static ResultBean scExpectationFailed(String message) {
        return new ResultBean(SC_EXPECTATION_FAILED, message);
    }

    public static ResultBean scExpectationFailed(String message, Object data) {
        return new ResultBean(SC_EXPECTATION_FAILED, message, data);
    }

    public static ResultBean scInternalServerError(String message) {
        return new ResultBean(SC_INTERNAL_SERVER_ERROR, message);
    }

    public static ResultBean scInternalServerError(String message, Object data) {
        return new ResultBean(SC_INTERNAL_SERVER_ERROR, message, data);
    }

    public static ResultBean scNotImplemented(String message) {
        return new ResultBean(SC_NOT_IMPLEMENTED, message);
    }

    public static ResultBean scNotImplemented(String message, Object data) {
        return new ResultBean(SC_NOT_IMPLEMENTED, message, data);
    }

    public static ResultBean scBadGateway(String message) {
        return new ResultBean(SC_BAD_GATEWAY, message);
    }

    public static ResultBean scBadGateway(String message, Object data) {
        return new ResultBean(SC_BAD_GATEWAY, message, data);
    }

    public static ResultBean scServiceUnavailable(String message) {
        return new ResultBean(SC_SERVICE_UNAVAILABLE, message);
    }

    public static ResultBean scServiceUnavailable(String message, Object data) {
        return new ResultBean(SC_SERVICE_UNAVAILABLE, message, data);
    }

    public static ResultBean scGatewayTimeout(String message) {
        return new ResultBean(SC_GATEWAY_TIMEOUT, message);
    }

    public static ResultBean scGatewayTimeout(String message, Object data) {
        return new ResultBean(SC_GATEWAY_TIMEOUT, message, data);
    }

    public static ResultBean scHttpVersionNotSupported(String message) {
        return new ResultBean(SC_HTTP_VERSION_NOT_SUPPORTED, message);
    }

    public static ResultBean scHttpVersionNotSupported(String message, Object data) {
        return new ResultBean(SC_HTTP_VERSION_NOT_SUPPORTED, message, data);
    }

    public static ResultBean scLoginError(String message) {
        return new ResultBean(SC_LOGIN_ERROR, message);
    }

    public static ResultBean scLoginError(String message, Object data) {
        return new ResultBean(SC_LOGIN_ERROR, message, data);
    }

    public static ResultBean scLoginSuccess(String message) {
        return new ResultBean(SC_LOGIN_SUCCESS, message);
    }

    public static ResultBean scLoginSuccess(String message, Object data) {
        return new ResultBean(SC_LOGIN_SUCCESS, message, data);
    }

    public static ResultBean scRegisterError(String message) {
        return new ResultBean(SC_REGISTER_ERROR, message);
    }

    public static ResultBean scRegisterError(String message, Object data) {
        return new ResultBean(SC_REGISTER_ERROR, message, data);
    }

    public static ResultBean scRegisterSuccess(String message) {
        return new ResultBean(SC_REGISTER_SUCCESS, message);
    }

    public static ResultBean scRegisterSuccess(String message, Object data) {
        return new ResultBean(SC_REGISTER_SUCCESS, message, data);
    }

    public static ResultBean scOperationSuccess(String message) {
        return new ResultBean(SC_OPERATION_SUCCESS, message);
    }

    public static ResultBean scOperationSuccess(String message, Object data) {
        return new ResultBean(SC_OPERATION_SUCCESS, message, data);
    }

    public static ResultBean scOperationError(String message) {
        return new ResultBean(SC_OPERATION_ERROR, message);
    }

    public static ResultBean scOperationError(String message, Object data) {
        return new ResultBean(SC_OPERATION_ERROR, message, data);
    }

    public static ResultBean scUploadSuccess(String message) {
        return new ResultBean(SC_UPLOAD_SUCCESS, message);
    }

    public static ResultBean scUploadSuccess(String message, Object data) {
        return new ResultBean(SC_UPLOAD_SUCCESS, message, data);
    }

    public static ResultBean scUploadError(String message) {
        return new ResultBean(SC_UPLOAD_ERROR, message);
    }

    public static ResultBean scUploadError(String message, Object data) {
        return new ResultBean(SC_UPLOAD_ERROR, message, data);
    }

    /**
     * @description 各类型状态码
     *
     * */

    public static final int SC_UPLOAD_SUCCESS = 1 ;

    public static final int SC_UPLOAD_ERROR = -1;

    public static final int SC_OPERATION_SUCCESS = 1 ;

    public static final int SC_OPERATION_ERROR = -1;

    public static final int SC_LOGIN_ERROR = -1 ;

    public static final int SC_LOGIN_SUCCESS = 1 ;

    public static final int SC_REGISTER_ERROR = -2 ;

    public static final int SC_REGISTER_SUCCESS = 2 ;



    public static final int SC_CONTINUE = 100;

    public static final int SC_SWITCHING_PROTOCOLS = 101;

    public static final int SC_OK = 200;

    public static final int SC_CREATED = 201;

    public static final int SC_ACCEPTED = 202;

    public static final int SC_NON_AUTHORITATIVE_INFORMATION = 203;

    public static final int SC_NO_CONTENT = 204;

    public static final int SC_RESET_CONTENT = 205;

    public static final int SC_PARTIAL_CONTENT = 206;

    public static final int SC_MULTIPLE_CHOICES = 300;

    public static final int SC_MOVED_PERMANENTLY = 301;

    public static final int SC_MOVED_TEMPORARILY = 302;

    public static final int SC_FOUND = 302;

    public static final int SC_SEE_OTHER = 303;

    public static final int SC_NOT_MODIFIED = 304;

    public static final int SC_USE_PROXY = 305;

    public static final int SC_TEMPORARY_REDIRECT = 307;

    public static final int SC_BAD_REQUEST = 400;

    public static final int SC_UNAUTHORIZED = 401;

    public static final int SC_PAYMENT_REQUIRED = 402;

    public static final int SC_FORBIDDEN = 403;

    public static final int SC_NOT_FOUND = 404;

    public static final int SC_METHOD_NOT_ALLOWED = 405;

    public static final int SC_NOT_ACCEPTABLE = 406;

    public static final int SC_PROXY_AUTHENTICATION_REQUIRED = 407;

    public static final int SC_REQUEST_TIMEOUT = 408;

    public static final int SC_CONFLICT = 409;

    public static final int SC_GONE = 410;

    public static final int SC_LENGTH_REQUIRED = 411;

    public static final int SC_PRECONDITION_FAILED = 412;

    public static final int SC_REQUEST_ENTITY_TOO_LARGE = 413;

    public static final int SC_REQUEST_URI_TOO_LONG = 414;

    public static final int SC_UNSUPPORTED_MEDIA_TYPE = 415;

    public static final int SC_REQUESTED_RANGE_NOT_SATISFIABLE = 416;

    public static final int SC_EXPECTATION_FAILED = 417;

    public static final int SC_INTERNAL_SERVER_ERROR = 500;

    public static final int SC_NOT_IMPLEMENTED = 501;

    public static final int SC_BAD_GATEWAY = 502;

    public static final int SC_SERVICE_UNAVAILABLE = 503;

    public static final int SC_GATEWAY_TIMEOUT = 504;

    public static final int SC_HTTP_VERSION_NOT_SUPPORTED = 505;

}